package com.zelix;

import java.io.*;
import java.util.HashMap;
import java.util.Vector;
import java.util.zip.*;

public class ay
{

    private xx a;
    private Vector b;
    private boolean c;
    private String d;
    private static String z;

    public ay(ZipFile zipfile, ZipEntry zipentry)
        throws IOException, rb
    {
        InputStream inputstream;
        BufferedReader bufferedreader;
        boolean flag1;
        flag1 = yx.d;
        super();
        b = new Vector();
        inputstream = null;
        bufferedreader = null;
        d = zipfile.getName();
        c = zipentry.getMethod() == 8;
        boolean flag;
        inputstream = zipfile.getInputStream(zipentry);
        bufferedreader = oc.a(inputstream);
        a = new xx(bufferedreader);
        flag = a.b();
        if(!flag1) goto _L2; else goto _L1
_L1:
        int i = gs.b;
        gs.b = ++i;
_L4:
        wx wx1 = new wx(bufferedreader);
        if(!wx1.a())
            b.addElement(wx1);
        flag = wx1.b();
_L2:
        if(!flag) goto _L4; else goto _L3
_L3:
        break MISSING_BLOCK_LABEL_197;
        local;
label0:
        {
            if(bufferedreader != null)
            {
                try
                {
                    bufferedreader.close();
                    break label0;
                }
                catch(IOException ioexception) { }
                if(!flag1)
                    break label0;
            }
            if(inputstream != null)
                try
                {
                    inputstream.close();
                }
                catch(IOException ioexception1) { }
        }
        JVM INSTR ret 6;
    }

    public boolean a()
    {
        return a.c();
    }

    public boolean b()
        throws rb
    {
        return a.d();
    }

    public boolean c()
    {
        return c;
    }

    public void a(String s, HashMap hashmap, HashMap hashmap1)
    {
        int i;
        boolean flag;
        flag = yx.d;
        a.a(s, hashmap, hashmap1);
        i = 0;
        if(!flag) goto _L2; else goto _L1
_L1:
        wx wx1 = (wx)b.elementAt(i);
        wx1.a(s, hashmap);
        i++;
_L2:
        if(i >= b.size())
            return;
        if(true) goto _L1; else goto _L3
_L3:
    }

    public void a(ZipOutputStream zipoutputstream, ly ly, ly ly1, yx yx1, boolean flag)
        throws IOException
    {
        rc rc1;
        PrintWriter printwriter;
        int i;
        boolean flag1;
        flag1 = yx.d;
        rc1 = new rc(zipoutputstream, z, flag);
        printwriter = new PrintWriter(rc1.a());
        a.a(printwriter, ly, ly1, yx1);
        i = 0;
        if(!flag1) goto _L2; else goto _L1
_L1:
        wx wx1 = (wx)b.elementAt(i);
        wx1.a(printwriter, ly, ly1, yx1);
        i++;
_L2:
        if(i >= b.size())
        {
            printwriter.println();
            printwriter.flush();
            rc1.b();
            return;
        }
        if(true) goto _L1; else goto _L3
_L3:
    }

    private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0: // '\0'
            key = 0x28;
            break;

        case 1: // '\001'
            key = 107;
            break;

        case 2: // '\002'
            key = 50;
            break;

        case 3: // '\003'
            key = 81;
            break;

        default:
            key = 79;
            break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static
    {
        z = z("e.f\020ba%t~\002i%{\027\n{?\034\034\t".toCharArray());
    }
}